{
    "$schema": "https://raw.githubusercontent.com/TingPing/flatpak-manifest-schema/master/flatpak-manifest.schema",
    "app-id": "com.solvespace.SolveSpace",
    "runtime": "org.freedesktop.Platform",
    "runtime-version": "21.08",
    "sdk": "org.freedesktop.Sdk",
    "finish-args": [
        "--device=dri",
        "--share=ipc",
        "--socket=fallback-x11",
        "--socket=wayland"
    ],
    "cleanup": [
        "/include",
        "/lib/cmake",
        "/lib/pkgconfig",
        "/share/aclocal",
        "/share/pkgconfig",
        "*.la"
    ],
    "command": "solvespace",
    "modules": [
        {
            "name": "mm-common",
            "buildsystem": "meson",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/mm-common/1.0/mm-common-1.0.4.tar.xz",
                    "sha256": "e954c09b4309a7ef93e13b69260acdc5738c907477eb381b78bb1e414ee6dbd8",
                    "x-checker-data": {
                        "type": "gnome",
                        "name": "mm-common",
                        "stable-only": true
                    }
                }
            ],
            "cleanup": [
                "/bin",
                "/share/doc",
                "/share/man",
                "/share/mm-common"
            ]
        },
        {
            "name": "sigc++",
            "buildsystem": "meson",
            "config-opts": [
                "-Dbuild-examples=false"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/libsigc++/2.10/libsigc++-2.10.8.tar.xz",
                    "sha256": "235a40bec7346c7b82b6a8caae0456353dc06e71f14bc414bcc858af1838719a",
                    "x-checker-data": {
                        "type": "gnome",
                        "name": "libsigc++",
                        "stable-only": true,
                        "versions": {
                            "<": "3.0.0"
                        }
                    }
                }
            ],
            "cleanup": [
                "/lib/sigc++-*"
            ]
        },
        {
            "name": "glibmm",
            "buildsystem": "meson",
            "config-opts": [
                "-Dbuild-examples=false"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/glibmm/2.66/glibmm-2.66.4.tar.xz",
                    "sha256": "199ace5682d81b15a1d565480b4a950682f2db6402c8aa5dd7217d71edff81d5",
                    "x-checker-data": {
                        "type": "gnome",
                        "name": "glibmm",
                        "stable-only": true,
                        "versions": {
                            "<": "2.68.0"
                        }
                    }
                }
            ],
            "cleanup": [
                "/lib/giomm-*",
                "/lib/glibmm-*",
                "/lib/libglibmm_generate_extra_defs-*.so*"
            ]
        },
        {
            "name": "cairomm",
            "config-opts": [
                "--disable-documentation"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/cairomm/1.12/cairomm-1.12.0.tar.xz",
                    "sha256": "a54ada8394a86182525c0762e6f50db6b9212a2109280d13ec6a0b29bfd1afe6",
                    "x-checker-data": {
                        "type": "gnome",
                        "name": "cairomm",
                        "stable-only": true,
                        "versions": {
                            "<": "1.16.0"
                        }
                    }
                }
            ],
            "cleanup": [
                "/lib/cairomm-*"
            ]
        },
        {
            "name": "pangomm",
            "buildsystem": "meson",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/pangomm/2.46/pangomm-2.46.2.tar.xz",
                    "sha256": "57442ab4dc043877bfe3839915731ab2d693fc6634a71614422fb530c9eaa6f4",
                    "x-checker-data": {
                        "type": "gnome",
                        "name": "pangomm",
                        "stable-only": true,
                        "versions": {
                            "<": "2.48.0"
                        }
                    }
                }
            ],
            "cleanup": [
                "/lib/pangomm-*"
            ]
        },
        {
            "name": "atkmm",
            "buildsystem": "meson",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/atkmm/2.28/atkmm-2.28.2.tar.xz",
                    "sha256": "a0bb49765ceccc293ab2c6735ba100431807d384ffa14c2ebd30e07993fd2fa4",
                    "x-checker-data": {
                        "type": "gnome",
                        "name": "atkmm",
                        "stable-only": true,
                        "versions": {
                            "<": "2.30.0"
                        }
                    }
                }
            ],
            "cleanup": [
                "/lib/atkmm-*"
            ]
        },
        {
            "name": "gtkmm",
            "buildsystem": "meson",
            "config-opts": [
                "-Dbuild-demos=false",
                "-Dbuild-tests=false"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/gtkmm/3.24/gtkmm-3.24.6.tar.xz",
                    "sha256": "4b3e142e944e1633bba008900605c341a93cfd755a7fa2a00b05d041341f11d6",
                    "x-checker-data": {
                        "type": "gnome",
                        "name": "gtkmm",
                        "stable-only": true,
                        "versions": {
                            "<": "4.0.0"
                        }
                    }
                }
            ],
            "cleanup": [
                "/lib/gdkmm-*",
                "/lib/gtkmm-*"
            ]
        },
        {
            "name": "eigen",
            "buildsystem": "cmake-ninja",
            "builddir": true,
            "sources": [
                {
                    "type": "archive",
                    "url": "https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz",
                    "sha256": "8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72",
                    "x-checker-data": {
                        "type": "anitya",
                        "project-id": 13751,
                        "stable-only": true,
                        "url-template": "https://gitlab.com/libeigen/eigen/-/archive/$version/eigen-$version.tar.gz"
                    }
                }
            ],
            "cleanup": [
                "*"
            ]
        },
        {
            "name": "libjson-c",
            "buildsystem": "cmake-ninja",
            "builddir": true,
            "config-opts": [
                "-DBUILD_STATIC_LIBS=OFF",
                "-DENABLE_THREADING=ON"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://s3.amazonaws.com/json-c_releases/releases/json-c-0.16.tar.gz",
                    "sha256": "8e45ac8f96ec7791eaf3bb7ee50e9c2100bbbc87b8d0f1d030c5ba8a0288d96b",
                    "x-checker-data": {
                        "type": "anitya",
                        "project-id": 1477,
                        "stable-only": true,
                        "url-template": "https://s3.amazonaws.com/json-c_releases/releases/json-c-$version.tar.gz"
                    }
                }
            ]
        },
        {
            "name": "solvespace",
            "buildsystem": "cmake-ninja",
            "builddir": true,
            "config-opts": [
                "-DFLATPAK=ON",
                "-DENABLE_TESTS=OFF"
            ],
            "sources": [
                {
                    "type": "dir",
                    "path": "../.."
                }
            ],
            "cleanup": [
                "/lib/libslvs*.so*"
            ]
        }
    ]
}
